Vlocity Facts #14 | Integration Procedure Properties
Integration Procedure runs in synchronous or asynchronous mode ?
By Default it will run in Synchronous mode.
To make Integration Procedure run in Asynchronous mode, call Integration Procedures using these settings from omniscript:
Use Future — Use when the calling OmniScript or Integration Procedure doesn't need a response and completion time is not critical. [Specifies that the Integration Procedure runs asynchronously, as a Salesforce future method, which can return no data to the calling OmniScript.]
Invoke Mode: Non-Blocking :The Action runs asynchronously, and the response applies to the UI. Pre and Post DataRaptor transform and large attachments are not supported.
Invoke Mode: Fire and Forget :The Action runs asynchronously with no callback to the UI. Pre and Post DataRaptor transforms, and large attachments are not supported. A response still appears in the debug console but does not apply to the Data JSON.
==============================================================================================
Chainable and queueable
By default, all the actions in an Integration Procedure run in a single transaction.
Chainable (and queueable) are used in Integration procedure to avoid hitting governor limits on an Integration procedure. One integration procedure is considered as one transaction, and when you have long running integration procedures, you have the risk of hitting one or transaction governor limits.
When chaining is enabled, if an Integration Procedure exceeds a governor limit, its interim results are saved and it is continued in a new transaction.
You can also enable a chainable IP to be queueable, which runs in Async mode, which have higher governor limits.
Chainable - Synchronous Apex Execution eg, limits of soql queries is 100
Queueable - Asynchronous Apex Execution eg, limits of soql queries is 200
Comments
Post a Comment